from aiogram_dialog import DialogManager

from src.database.services import CategoryService


async def categories_getter(
    dialog_manager: DialogManager, category_service: CategoryService, **kwargs
):
    categories = await category_service.get_categories()

    return {"categories": categories}
